/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package cn.hermit.util;

/**
 * OSUtils utility
 * 
 * @author Jack Gao
 * @Date 2013-4-20
 */
public class OSUtils {

    /**
     * Default new line feed.
     */
    public static final String NEW_LINE_FEED_DEFAULT;

    /**
     * new line feed of Operation system.
     */
    public static final String NEW_LINE_FEED_OS;

    /**
     * Check if current operation system is windows.
     */
    public static final boolean IS_WINDOWS;

    static {
        NEW_LINE_FEED_DEFAULT = "\n";
        NEW_LINE_FEED_OS = System.getProperty("line.separator", "/n");
        String os = System.getProperty("os.name");
        IS_WINDOWS = os.startsWith("win") || os.startsWith("Win");
    }
}